body {
    font-family: Arial, sans-serif;
    margin: 20px;
    display: flex;
    height: 90vh;
}

#client-list {
    width: 30%;
    padding: 10px;
    border-right: 1px solid #ccc;
    overflow-y: auto;
}

#file-view {
    width: 70%;
    padding: 10px;
    overflow-y: auto;
}

.client-item {
    padding: 10px;
    margin: 5px 0;
    background-color: #f5f5f5;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.client-item.active {
    background-color: #e0e0e0;
}

.client-item i {
    margin-right: 10px;
}

.file-tree {
    padding: 5px 0 5px 20px;
}

.file-item {
    position: relative;
    overflow: hidden;
    padding: 8px 12px;
    margin: 2px 0;
    color: #666;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.file-item .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(76, 175, 80, 0.3);
    z-index: 1;
    transition: width 0.3s ease;
}

.file-item .content {
    position: relative;
    z-index: 2;
}

.file-item:hover {
    background-color: #e0e0e0;
}

.file-item.file-exists {
    background-color: rgba(76, 175, 80, 0.2);
}

.file-item.file-exists:hover {
    background-color: rgba(76, 175, 80, 0.3);
}

.file-item.selected {
    background-color: #d0d0d0;
}

.connection-status {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s ease;
}

.status-light.connected {
    background-color: #4caf50;
}

.status-light.disconnected {
    background-color: #f44336;
}

.status-light.connecting {
    background-color: #ffeb3b;
    animation: pulse 1s infinite;
}

.upload-progress-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.progress-box-header {
    padding: 10px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
}

.progress-box-header span {
    font-weight: bold;
}

.progress-box-content {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-item .filename {
    font-size: 14px;
    color: #333;
}

.progress-item .progress-bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-item .progress-bar-inner {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

.progress-item .progress-text {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-right: 8px;
}

.progress-item .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 4px;
    color: #666;
    transition: color 0.2s;
}

.progress-item .action-btn:hover {
    color: #333;
}

.progress-item .action-btn.pause-btn {
    color: #f39c12;
}

.progress-item .action-btn.delete-btn {
    color: #e74c3c;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}